POST
/
v1
/
inventory
/
warehouses
/
{id}
/
locations
/
batch
Batch update Locations
curl --request POST \
  --url https://{client_id}.shipstream.app/api/global/v1/inventory/warehouses/{id}/locations/batch \
  --header 'Content-Type: application/json' \
  --data '{
  "onError": "continue",
  "operation": "upsert",
  "locations": [
    {
      "label": "RK07-R2-S1-L1",
      "rack": {
        "type": "Rack",
        "id": 3
      },
      "location_type": {
        "type": "LocationType",
        "id": 3
      },
      "priority": 2
    }
  ]
}'
{
  "committed": 1,
  "failed": 1,
  "results": [
    {
      "resource": {
        "type": "Location",
        "id": 42,
        "label": "RK07-R2-S1-L1"
      },
      "status": "committed",
      "message": "<string>"
    }
  ]
}

Path Parameters

id
integer
required

The id of the referenced Warehouse.

Required range: x >= 1

Body

application/json

An object conforming to the Inventory Warehouse Location schemas batch to be created or updated.

The body is of type object.

Response

200
application/json

No fatal client or server errors occurred. Check the response to see which items were updated successfully.

The response is of type object.